#include <stdio.h>
#include <sys/types.h>
#include <ustat.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
int main()
{
    int fd = open("bite", O_CREAT | O_WRONLY | O_TRUNC);
    const char* str = "i like linux!\n";
    write(fd, str, strlen(str));
    close(fd);
    fd = open("bite", O_RDONLY);
    char ret[strlen(str)];
    read(fd, ret, strlen(str));
    printf("%s", ret);
    close(fd);
}
